package com.hom;

import com.sun.scenario.effect.impl.sw.sse.SSEBlend_SRC_OUTPeer;
import com.sun.xml.internal.ws.api.model.wsdl.WSDLOutput;
import org.w3c.dom.ls.LSOutput;

public class Test2 {
    public static void main(String[] args) {
        Preson p = new Preson();

        p.name = "詹姆斯帮亿";
        p.age = 32;
        System.out.println(p.name);
        System.out.println(p.age);
        p.eat();
        p.sleep();
        p.talk("Chines");
        System.out.println();
        System.out.println("===========");
        Preson p2 = new Preson();
        System.out.println(p2.name);
            Preson p3 = p;

            p3.name = "sb";
        System.out.println(p.name);

    }
    }

class Preson{
    String name ;
    int age =1 ;
    boolean isMale;


    public void eat() {
        System.out.println("人可以吃饭");
    }

       public void sleep() {
           System.out.println("人可以睡觉");
       }
            public void talk(String language){
                System.out.println("人可以说话，使用的是"+language);

            }

        }


